

<div data-role="fieldcontain">
 	<fieldset data-role="controlgroup">
		<?foreach($payload as $allergy):?>
			<input type="checkbox" name="<?=$allergy->id?>" id="allergy-<?=$allergy->id?>" 
			class="allergy_check" <?if ($allergy->selected == 1):?>checked="checked"<?endif;?>/>
			<label for="allergy-<?=$allergy->id?>"><?=$allergy->name?></label>
		<?endforeach;?>
	</fieldset>
</div>
		